﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StoreDetail.aspx.cs" Inherits="H2.NET.Web.Pages.SMD.StoreDetail" %>

<%@ Register Src="uc_dealer.ascx" TagName="uc_dealer" TagPrefix="uc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>门店主数据维护</title>
    <link href="<%=Page.ResolveUrl("~/Resource/Css/Style.css")%>" type="text/css" rel="stylesheet" />
    <link href="<%=Page.ResolveUrl("~/Resource/jBox/Blue/jbox.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/Css/validform.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%=Page.ResolveUrl("~/Resource/dwz/js/jquery-1.7.2.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/Common.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/jquery.money.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-2.3.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-zh-CN.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/Js/Validform_v5.3.2.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/My97DatePicker/WdatePicker.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.js")%>" type="text/javascript"></script>
</head>
<script type="text/javascript">
    /* 提交表单 st */
    function confirmSubmit() {
        if (window.confirm("确认要提交吗？")) {
            $.jBox.tip('正在处理，请稍等...', 'loading');
            return true;
        }
        return false;
    }
    /* 提交表单 ed */
</script>
<body>
    <div class="flowpage">
        <form id="form" runat="server">
            <div class="flowContent">
                <table class="formTable">
                    <!-- 经销商信息 st -->
                    <tbody>
                        <uc:uc_dealer ID="uc_dealer1" runat="server" />
                    </tbody>
                    <!-- 经销商信息 ed -->
                    <!-- 门店信息 st -->
                    <tbody id="tbody_store" runat="server" visible="false">
                        <tr>
                            <td class="title" colspan="6">门店信息</td>
                        </tr>
                        <tr>
                            <th>门店授权号：</th>
                            <td>
                                <asp:HiddenField ID="StoreID" runat="server" />
                                <asp:TextBox ID="authid" runat="server"></asp:TextBox>
                            </td>
                            <th>门店名称：</th>
                            <td colspan="3">
                                <asp:TextBox ID="StoreName" runat="server" Width="455px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>门店状态：</th>
                            <td>
                                <asp:DropDownList ID="StoreStatus" runat="server"></asp:DropDownList>
                            </td>
                            <th>门店类型：</th>
                            <td>
                                <asp:DropDownList ID="StoreType" runat="server"></asp:DropDownList>
                            </td>
                            <th>门店渠道：</th>
                            <td>
                                <asp:DropDownList ID="Channel" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>最初开业时间：</th>
                            <td>
                                <asp:TextBox ID="FirstStartDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM'})"></asp:TextBox>
                            </td>
                            <th>目前开业时间：</th>
                            <td colspan="3">
                                <asp:TextBox ID="CurrentStartDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM'})"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>门店区域：</th>
                            <td>
                                <asp:TextBox ID="Region" runat="server" ReadOnly="true"></asp:TextBox>
                            </td>
                            <th>门店省份：</th>
                            <td>
                                <asp:TextBox ID="Province" runat="server" ReadOnly="true"></asp:TextBox>
                            </td>
                            <th>门店城市：</th>
                            <td>
                                <asp:DropDownList ID="CityName" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>门店地址：</th>
                            <td colspan="5">
                                <asp:TextBox ID="Address" runat="server" Width="620px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>联系人：</th>
                            <td>
                                <asp:TextBox ID="ContractPerson" runat="server"></asp:TextBox>
                            </td>
                            <th>电话：</th>
                            <td colspan="3">
                                <asp:TextBox ID="PhoneNumber" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>门店建筑面积：</th>
                            <td>
                                <asp:TextBox ID="StoreSize" runat="server"></asp:TextBox>M<sup>2</sup>
                            </td>
                            <th>SMS账号：</th>
                            <td colspan="3">
                                <asp:TextBox ID="AccountCMS" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>调色服务：</th>
                            <td>
                                <asp:CheckBox ID="IsTintingService" runat="server" />
                            </td>
                            <th>色彩咨询：</th>
                            <td>
                                <asp:CheckBox ID="IsColourService" runat="server" />
                            </td>
                            <th>官网屏蔽：</th>
                            <td>
                                <asp:CheckBox ID="ShowInWebsite" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th>关店时间：</th>
                            <td>
                                <asp:TextBox ID="CloseDate" runat="server" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                            </td>
                            <th>关店原因：</th>
                            <td>
                                <asp:TextBox ID="CloseReason" runat="server"></asp:TextBox>
                            </td>
                            <th>关店类型：</th>
                            <td>
                                <asp:TextBox ID="CloseType" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>EP系统流水号：</th>
                            <td>
                                <asp:TextBox ID="EapproveSN" runat="server"></asp:TextBox>
                            </td>
                            <th>EP审批日期：</th>
                            <td>
                                <asp:TextBox ID="StoreApprovedDate" runat="server" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>市场/街道全名：</th>
                            <td>
                                <asp:TextBox ID="MallName" runat="server"></asp:TextBox>
                            </td>
                            <th>市场/街道简称：</th>
                            <td>
                                <asp:TextBox ID="MallShortName" runat="server"></asp:TextBox>
                            </td>
                            <th>店序号：</th>
                            <td>
                                <asp:TextBox ID="ShopSeq" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>门牌号：</th>
                            <td>
                                <asp:TextBox ID="HouseNumber" runat="server"></asp:TextBox>
                            </td>
                            <th>启动营业时间：</th>
                            <td>
                                <asp:TextBox ID="OpenBusinessDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM'})"></asp:TextBox>
                            </td>
                            <th>门店装修类型：</th>
                            <td>
                                <asp:DropDownList ID="NewFitment" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>是否升级：</th>
                            <td>
                                <asp:CheckBox ID="IsUpgraded" runat="server" /></td>
                            <th>升级前店面类型：</th>
                            <td colspan="3">
                                <asp:DropDownList ID="BeforeUpgradedType" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>是否降级：</th>
                            <td>
                                <asp:CheckBox ID="IsDowngraded" runat="server" /></td>
                            <th>降级前店面类型：</th>
                            <td colspan="3">
                                <asp:DropDownList ID="BeforeDowngradedType" runat="server"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>是否翻新：</th>
                            <td>
                                <asp:CheckBox ID="IsRenew" runat="server" /></td>
                            <th>翻新前店面类型：</th>
                            <td>
                                <asp:DropDownList ID="BeforeRenewType" runat="server"></asp:DropDownList>
                            </td>
                            <th>最新翻新日期：</th>
                            <td>
                                <asp:TextBox ID="LastRenewDate" runat="server" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox></td>
                        </tr>
                    </tbody>
                    <!-- 门店信息 ed -->

                    <!-- 合同信息 st -->
                    <tbody id="StoreContract" runat="server">
                        <tr>
                            <td class="title" colspan="6">门店合同信息
                                （<asp:Literal ID="StoreNature" runat="server"></asp:Literal>）
                            </td>
                        </tr>
                        <tr>
                            <th>门店合同版本号：</th>
                            <td>
                                <asp:DropDownList ID="StoreContractSN" runat="server"></asp:DropDownList>
                            </td>
                            <th>合同甲方：</th>
                            <td>
                                <asp:TextBox ID="StoreAffiliation" runat="server"></asp:TextBox>
                            </td>
                            <th>合同起始：</th>
                            <td>
                                <asp:TextBox ID="StoreContractBeginDate" runat="server" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>合同归档号：</th>
                            <td>
                                <asp:TextBox ID="StoreArchive" runat="server"></asp:TextBox>
                            </td>
                            <th>转出门店编号：</th>
                            <td>
                                <asp:TextBox ID="TransferFromStoreSN" runat="server"></asp:TextBox>
                            </td>
                            <th>合同签订日期：</th>
                            <td>
                                <asp:TextBox ID="TransferContractDate" runat="server" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>不合作客户原因：</th>
                            <td colspan="5">
                                <asp:TextBox ID="StoreNotSignReason" runat="server" Width="600" Height="50" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                    <!-- 合同信息 ed -->

                    <!-- 设备主数据 st -->
                    <tbody id="tb_device" runat="server">
                        <asp:Repeater ID="rpt_devices" runat="server" visible="false" OnItemDataBound="rpt_devices_ItemDataBound">
                            <ItemTemplate>
                                <tr>
                                    <td colspan="6" class="title">设备信息-<%# Container.ItemIndex + 1 %></td>
                                </tr>
                                <tr>
                                    <th>设备状态：</th>
                                    <td>
                                        <asp:HiddenField ID="DeviceID" runat="server" Value='<%#Eval("DeviceID")%>' />
                                        <asp:HiddenField ID="hf_Status" runat="server" Value='<%#Eval("Status")%>' />
                                        <asp:DropDownList ID="Status" runat="server"></asp:DropDownList>
                                    </td>
                                    <th>固定资产号：</th>
                                    <td>
                                        <asp:TextBox ID="FullSetSN" runat="server" Text='<%#Eval("FullSetSN")%>'></asp:TextBox></td>
                                    <th>设备是否转固：</th>
                                    <td>
                                        <asp:HiddenField ID="hf_IsTurnSolid" runat="server" Value='<%#Eval("IsTurnSolid")%>' />
                                        <asp:CheckBox ID="IsTurnSolid" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>发放方式：</th>
                                    <td>
                                        <asp:TextBox ID="DeliveryType" runat="server" Text='<%#Eval("DeliveryType")%>'></asp:TextBox></td>
                                    <th>机器初购年份：</th>
                                    <td>
                                        <asp:TextBox ID="PurchasedDate" runat="server" Text='<%#Eval("PurchasedDate","{0:yyyy-MM-dd}") %>' CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox></td>
                                    <th>安装时间：</th>
                                    <td>
                                        <asp:TextBox ID="InstallDate" runat="server" Text='<%#Eval("InstallDate","{0:yyyy-MM-dd}") %>' CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <th>调色机型号：</th>
                                    <td>
                                        <asp:TextBox ID="DispenserModel" runat="server" Text='<%#Eval("DispenserModel")%>'></asp:TextBox></td>
                                    <th>调色机固定资产号：</th>
                                    <td>
                                        <asp:TextBox ID="DispenserFixedAsset" runat="server" Text='<%#Eval("DispenserFixedAsset")%>'></asp:TextBox></td>
                                    <th>调色机序列号：</th>
                                    <td>
                                        <asp:TextBox ID="DispenserSN" runat="server" Text='<%#Eval("DispenserSN")%>'></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <th>震荡机型号型号：</th>
                                    <td>
                                        <asp:TextBox ID="ShakerModel" runat="server" Text='<%#Eval("ShakerModel")%>'></asp:TextBox></td>
                                    <th>震荡机固定资产号：</th>
                                    <td>
                                        <asp:TextBox ID="ShakerFixedAsset" runat="server" Text='<%#Eval("ShakerFixedAsset")%>'></asp:TextBox></td>
                                    <th>震荡机序列号：</th>
                                    <td>
                                        <asp:TextBox ID="ShakerSN" runat="server" Text='<%#Eval("ShakerSN")%>'></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <th>电脑型号：</th>
                                    <td>
                                        <asp:TextBox ID="PcModel" runat="server" Text='<%#Eval("PcModel")%>'></asp:TextBox></td>
                                    <th>电脑固定资产号：</th>
                                    <td>
                                        <asp:TextBox ID="PcFixedAsset" runat="server" Text='<%#Eval("PcFixedAsset")%>'></asp:TextBox></td>
                                    <th>电脑序列号：</th>
                                    <td>
                                        <asp:TextBox ID="PcSN" runat="server" Text='<%#Eval("PcSN")%>'></asp:TextBox></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <asp:Repeater ID="rpt_devices_contract" runat="server" OnItemDataBound="rpt_devices_contract_ItemDataBound">
                            <ItemTemplate>
                                <tr>
                                    <td class="title" colspan="6">设备合同-<%# Container.ItemIndex + 1 %>
                                （<asp:Literal ID="DeviceNature" runat="server" Text='<%#Eval("DeviceNature")%>'></asp:Literal>）
                                    </td>
                                </tr>
                                <tr>
                                    <th>设备合同版本号：</th>
                                    <td>
                                        <asp:HiddenField ID="ContractDeviceID" runat="server" Value='<%#Eval("ContractDeviceID")%>' />
                                        <asp:HiddenField ID="hf_DeviceContractSN" runat="server" Value='<%#Eval("DeviceContractSN")%>' />
                                        <asp:DropDownList ID="DeviceContractSN" runat="server"></asp:DropDownList>
                                    </td>
                                    <th>合同甲方：</th>
                                    <td>
                                        <asp:TextBox ID="DeviceAffiliation" runat="server" Text='<%#Eval("DeviceAffiliation")%>'></asp:TextBox>
                                    </td>
                                    <th>合同起始：</th>
                                    <td>
                                        <asp:TextBox ID="DeviceContractBeginDate" runat="server" Text='<%#Eval("DeviceContractBeginDate","{0:yyyy-MM-dd}")%>' CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th>合同归档号：</th>
                                    <td colspan="5">
                                        <asp:TextBox ID="DeviceArchive" runat="server" Text='<%#Eval("DeviceArchive")%>'></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th>不合作客户原因：</th>
                                    <td colspan="5">
                                        <asp:TextBox ID="DeviceNotSignReason" runat="server" Text='<%#Eval("DeviceNotSignReason")%>' Width="600" Height="50" TextMode="MultiLine"></asp:TextBox>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                    <!-- 设备主数据 ed -->
                </table>
                <div class="flowBtns">
                    <asp:Button ID="btn_submit" runat="server" CssClass="u-btn" Text="提交(Submit)" OnClick="btn_submit_Click" OnClientClick="return confirmSubmit();" />
                    <button class="u-btn u-btn-c4" type="button" onclick="custom_close()">关闭(Close)</button>
                </div>
            </div>
        </form>
    </div>
</body>
</html>
